﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity.ModelConfiguration; 
using System.ComponentModel.DataAnnotations;
using Wedo.Recognition.Domain.Models;

namespace Wedo.Recognition.Domain.Mapping
{
    public class TransferVoucher_Mapping : EntityConfiguration< TransferVoucher >
    {
        public TransferVoucher_Mapping()
        {
            ToTable("TransferVouchers");

            Property(s => s.BankCode).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.Payer).HasMaxLength(100).HasColumnType("nvarchar");

            Property(s => s.NewCustomerCode).HasMaxLength(100).HasColumnType("varchar");
            Property(s => s.OriginalCustomerCode).HasMaxLength(100).HasColumnType("varchar");
            Property(s => s.NewDocumentNo).HasMaxLength(50).HasColumnType("varchar");
            Property(s => s.DocumentNo).HasMaxLength(50).HasColumnType("varchar");
        }

    }
}
